:host {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;

  ::ng-deep {
    nz-card {
      .ant-card-body {
        padding: 0;
        display: flex;
        flex-direction: column;
        min-height: 100px;
        max-height: 300px;
        overflow: hidden;

        .ant-table-wrapper {
          flex: 1;
          min-height: 0;
          
          .ant-spin-nested-loading {
            height: 100%;
            
            .ant-spin-container {
              height: 100%;
              display: flex;
              flex-direction: column;

              .ant-table {
                display: flex;
                flex-direction: column;
                height: 100%;

                .ant-table-container {
                  display: flex;
                  flex-direction: column;
                  height: 100%;

                  .ant-table-header {
                    flex: 0 0 auto;
                  }

                  .ant-table-body {
                    flex: 1;
                    min-height: 0;
                    overflow-y: auto !important;
                    
                    &::-webkit-scrollbar {
                      width: 6px;
                    }
                    
                    &::-webkit-scrollbar-thumb {
                      background: #ccc;
                      border-radius: 3px;
                    }
                  }
                }
              }
            }
          }
        }

        .ant-table-tbody > tr > td {
          padding: 8px;
          height: 40px;
          line-height: 24px;
          vertical-align: middle;

          .table-cell-content {
            display: block;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }

          a {
            margin-left: 6px;
          }
        }

        button {
          margin: 8px;
          height: 32px;
          width: calc(100% - 16px);
        }
      }
    }
  }
}

.modal-footer {
  margin-top: 24px;
  text-align: right;
  
  button + button {
    margin-left: 8px;
  }
}